//package com.example.service1.config;
//
//import com.cloud.logger.zchain.core.zookeeper.DefaultConnectionStateListener;
//import com.cloud.logger.zchain.core.zookeeper.ZookeeperFactory;
//import com.cloud.logger.zchain.support.ScheduleAnnotaion;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
////@Configuration
//public class SchedulingConfig1 {
//
//
////    @Bean
//    public ZookeeperFactory zookeeperFactory(){
//
//        try {
//            ZookeeperFactory zookeeperFactory = ZookeeperFactory.getInstance();
//            zookeeperFactory.init("115.159.160.97:2181","zchain-schedule",5000);
//
//
//
//            return zookeeperFactory;
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
//
//    @Bean
//    public DefaultConnectionStateListener defaultConnectionStateListener(){
//       return new DefaultConnectionStateListener();
//    }
//
//    @Bean
//    public ScheduleAnnotaion scheduleAnnotaion(){
//        return new ScheduleAnnotaion();
//    }
//
//}